package o;

import android.content.Context;
import android.content.Intent;
import com.huawei.appgallery.packagemanager.api.bean.ManagerTask;

class dtz$c implements coi {
    private dtz$c() {
    }

    public void ॱ(ManagerTask managerTask, int i, int i2) {
    }

    public void ˋ(ManagerTask managerTask, int i, int i2) {
        int i3 = 2;
        if (managerTask != null) {
            Intent intent = new Intent(dvq.ˊ());
            intent.setPackage(ContentManager.getInstant().getContext().getPackageName());
            ContentManager.getInstant().getContext().sendBroadcast(intent);
            switch (i) {
                case 4:
                    if (-1000001 != i2) {
                        Logger.ˎ("APP_SYN", "INSTALL_FAILED_USER_CANCEL ");
                        new eax(managerTask, i2, true).start();
                        return;
                    }
                    return;
                case 5:
                    Logger.ˎ("APP_SYN", "INSTALLED ");
                    eba ˋ = eba.ˋ();
                    Context ˋ2 = ContentManager.getInstant().getContext();
                    String str = managerTask.packageName;
                    if (managerTask.ᐝ != 2) {
                        i3 = 1;
                    }
                    ˋ.ˏ(ˋ2, str, null, i3, managerTask.ʻ);
                    return;
                case 12:
                    Logger.ˎ("APP_SYN", "INSTALL_FAILED_SELF_CHECKING ");
                    return;
                default:
                    return;
            }
        }
    }
}
